/ Assembly List / LJCNetCommon / LJCReflect / GetValue

Namespace - LJCNetCommon


Parameters
propertyName - The property name.

Returns

The object property value.

Syntax

C#
public Object GetValue(String propertyName)

Gets the property value as an object using a delegate. (E)

Example

C#
using LJCNetCommon;
        
// Initialize LJCReflect outside of loop.
var mReflect = new LJCReflect(records[0]);
foreach var record in records)
{
  // Use SetSource to change the data record.
  mReflect.SetSource(record);
  var value = mReflect.GetValue("LastName");
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.